From: Julian Sparber Date: Fri, 15 Dec 2023 18:25:52 +0000 (+0000) Subject: st/viewport: Queue only redraw when StAdjustment value changes X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~281^2~2^2~168 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=4b09aa2b8a33c49f6f789910235f02d0c7f2019f;p=gnome-shell.git st/viewport: Queue only redraw when StAdjustment value changes It's enough to redraw the actor. Also the actor may be already in a relayout cycle when the StAdjustment value changes which is bad. Part-of: --- diff --git a/src/st/st-viewport.c b/src/st/st-viewport.c index fa16fdaad..c87c0c2b1 100644 --- a/src/st/st-viewport.c +++ b/src/st/st-viewport.c @@ -89,7 +89,7 @@ adjustment_value_notify_cb (StAdjustment *adjustment, { clutter_actor_invalidate_transform (CLUTTER_ACTOR (viewport)); clutter_actor_invalidate_paint_volume (CLUTTER_ACTOR (viewport)); - clutter_actor_queue_relayout (CLUTTER_ACTOR (viewport)); + clutter_actor_queue_redraw (CLUTTER_ACTOR (viewport)); } static void